import axios from "axios";

const instance = axios.create({
  baseURL: "http://106.75.241.100:3012",
  timeout: 50000,
});

instance.interceptors.request.use((config) => {
  return config;
});

instance.interceptors.response.use(
  (response) => {
    return response.data;
  },
  (err) => {
    return Promise.reject(err);
  }
);

export default instance;
